/**
 * Created by XQ on 2017/5/19.
 */
public class ThreeDimmensionalArry {
    /**
     * 三维数组
     */
    static int[][][] arr = {
                                {{1,2,3},{4,5,6}},
                                {{7,8,9},{10,11,12}}
                            };

    public static void main(String[] args) {
        System.out.println("二维数组的长度："+arr[0].length);
        System.out.println("三维数组的长度："+arr.length);
        for (int i = 0; i < arr.length; i++) {

            for (int j = 0; j < arr[0].length; j++) {

                for (int k = 0; k < arr[0][0].length; k++) {
                    System.out.print(arr[i][j][k]+"\t");
                }
                System.out.println("");
            }
            System.out.println("");
        }
    }
}
